{% extends "temple.html" %}
{% block lab %}
class="active"
{% endblock %}
{% block connet %}
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">实验室表增加</h1>
                <form action="" method="post" class="form-horizontal">
                {% csrf_token %}
                   <div class="form-group {% if obj.lname.errors %}has-error{% endif %}">
                        <label for="{{ obj.lname.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.lname.label }}</label>
                             {{obj.lname}}
                            <span style="color: red">{{ obj.lname.errors.0 }}</span>
                    </div>
                    <div class="form-group {% if obj.fool.errors %}has-error{% endif %}">
                        <label for="{{ obj.fool.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.fool.label }}</label>
                             {{obj.fool}}
                            <span style="color: red">{{ obj.fool.errors.0 }}</span>
                    </div>

                    <div class="form-group {% if obj.roomnum.errors %}has-error{% endif %}">
                        <label for="{{ obj.roomnum.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.roomnum.label }}</label>
                             {{obj.roomnum}}
                            <span style="color: red">{{ obj.roomnum.errors.0 }}</span>
                    </div>
                    <div class="form-group {% if obj.user.errors %}has-error{% endif %}">
                        <label for="{{ obj.user.id_for_label }}" class="col-sm-2 col-sm-offset-2 control-label">{{ obj.user.label }}</label>
                             {{obj.user}}
                            <span style="color: red">{{ obj.user.errors.0 }}</span>
                    </div>
                    <button style="margin-left: 405px" class=" btn btn-primary">提交</button>
                </form>

        </div>
{% endblock %}